import { request } from '@/api/request';
import { HttpMethod } from '@/services/types';

/**
 * POST /upload 上传文件
 * @param params
 * @param options
 */
export async function resUpload(
  params: FormData ,
  options?: { [key: string]: any },
) {
  return request<string[]>('/upload', {
    method: HttpMethod.POST,
    data:params,
    ...(options || {}),
  });
}